//
//  Contact.h
//  HomeWork6-1
//
//  Created by dllo on 15/10/30.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Contact : NSObject

@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *sex;
@property (nonatomic, copy) NSString *phone;
@property (nonatomic, assign) NSInteger age;

- (id)initWithName:(NSString *)name sex:(NSString *)sex phone:(NSString *)phone age:(NSInteger)age;

- (NSComparisonResult)compareByNameOfContact:(Contact *)contact;

- (NSComparisonResult)compareByAgeOfContact:(Contact *)contact;

@end
